import org.rsbot.script.wrappers.RSNPC;

class VoluntaryThieve$Actions$7 extends VoluntaryThieve.Action
{
  RSNPC trainer;

  VoluntaryThieve.Action.State perform()
  {
    if (this.trainer == null) {
      if ((this.val$args.length != 1) || (!(this.val$args[0] instanceof RSNPC)))
        throw new IllegalArgumentException();
      this.trainer = ((RSNPC)this.val$args[0]);
    }

    return this.trainer.doAction("Knock-out") ? VoluntaryThieve.Action.State.COMPLETED : VoluntaryThieve.Action.State.PROGRESSING;
  }

  VoluntaryThieve.Action.State finish()
  {
    if ((this.trainer.getAnimation() == 12413) || (VoluntaryThieve.Actions.Methods.access$3200(VoluntaryThieve.Actions.access$1700(this.this$1))) || (VoluntaryThieve.Actions.access$5500(this.this$1))) {
      VoluntaryThieve.Actions.access$5402(this.this$1, false);
      return VoluntaryThieve.Action.State.COMPLETED;
    }

    return VoluntaryThieve.Action.State.PROGRESSING;
  }
}